<?php
 If (IsSet ($_SESSION ["code"])) { $code = $_SESSION ["code"] ; }
 If (!IsSet ($code))
  {
   Include ($repertoire_racine."/images/themes/config.inc") ;
   $param_theme ["nom_repertoire"] = $themes [$themes [0][1]][1] ;
   $param_theme ["fichier_config"] = $themes [$themes [0][1]][2] ;
   $titre_fenetre = "Authentification..." ;
   $rep_themes = "./images/themes/" ;
   Include ($repertoire_racine."images/themes/".$param_theme ["nom_repertoire"]."/".$param_theme ["fichier_config"]) ;
  }
 ElseIf (IsSet ($code) And ($code != -1))
  {
   $param_theme = parametres_theme (themeparsession ($code)) ;
   $rep_themes = "../../images/themes/" ;
   Include ($repertoire_racine."images/themes/".$param_theme ["nom_repertoire"]."/".$param_theme ["fichier_config"]) ;
  }
 // MISE EN PLACE DU THEME
 Echo "<TABLE BORDER=\"0\"" ;
 If (IsSet ($non_centrer) And (!$non_centrer)) { Echo " ALIGN=\"CENTER\"" ; }
 If (IsSet ($taille_longueur_max) And ($taille_longueur_max)) { Echo " WIDTH=\"100%\"" ; }
 If (IsSet ($taille_hauteur_max) And ($taille_hauteur_max)) { Echo " HEIGHT=\"100%\"" ; }
 Echo " CELLSPACING=\"0\" CELLPADDING=\"0\" STYLE=\"border-collapse:collapse\">" ;
 Echo "<TR>" ;
 Echo "<TD STYLE=\"background-image: url(".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [1][0].")\" BACKGROUND=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [1][0]."\"><IMG SRC=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [1][0]."\" BORDER=\"0\"></TD>" ;
 Echo "<TD STYLE=\"background-image: url(".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [2][0].")\" BACKGROUND=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [2][0]."\"" ;
 If ($theme [2][1] == 1)
  {
   Switch ($theme [2][2])
    {
     Case  1 : Echo " ALIGN=\"CENTER\"" ; Break ;
     Case  2 : Echo " ALIGN=\"RIGHT\"" ; Break ;
     Default : Break ;
    }
   Echo " vALIGN=\"BOTTOM\">" ;
   If ($theme [2][4] == 1) { Echo "<B>" ; }
   If ($theme [2][5] == 1) { Echo "<I>" ; }
   //If ($theme [0][41]) { Echo "<IMG SRC=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [0][41]."\" vALIGN=\"BOTTOM\" BORDER=\"0\" WIDTH=\"".$theme [0][3]."\" HEIGHT=\"".$theme [0][2]."\">" ; }
   If (!IsSet ($titre_complexe)) { Echo "<FONT COLOR=\"".$theme [2][3]."\">" ; }
   Echo $titre_fenetre ;
   If ($theme [2][5] == 1) { Echo "</I>" ; }
   If ($theme [2][4] == 1) { Echo "</B>" ; }
  }
 Else
  { Echo "><IMG SRC=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [2][0]."\" BORDER=\"0\">" ; }
 Echo "</TD>" ;
 Echo "<TD STYLE=\"background-image: url(".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [3][0].")\" BACKGROUND=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [3][0]."\"><IMG SRC=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [3][0]."\" BORDER=\"0\"></TD>" ;
 Echo "</TR>" ;
 Echo "<TR>" ;
 Echo "<TD STYLE=\"background-image: url(".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [4][0].")\" BACKGROUND=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [4][0]."\"><IMG SRC=\"".$rep_themes.$param_theme ["nom_repertoire"]."/".$theme [4][0]."\" BORDER=\"0\"></TD>" ;
 Echo "<TD BGCOLOR=\"".$theme [0][3]."\">";
?>